{% extends "account/base.html" %}

{% load css_class recaptcha2 socialaccount i18n %}

{% block head-title %}{% trans "Register" %} - {% endblock %}

{% block head %}
    {% recaptcha_init request.LANGUAGE_CODE %}
{% endblock %}

{% block content %}
    <div class="central-form">
        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation" class="active">
                <a role="tab"
                   data-toggle="tab"
                   aria-controls="home"
                   href="#">{% trans 'Create account' %}</a>
            </li>
            {% get_providers as socialaccount_providers %}
            {% for provider in socialaccount_providers %}
                <li role="presentation">
                    <a title="{{ provider.name }}"
                       class="socialaccount_provider {{ provider.id }}"
                       href="{% provider_login_url provider.id process='login' scope=scope auth_params=auth_params %}">{% trans 'Log in with GitHub' %} </a>
                </li>
            {% endfor %}
        </ul>
        <div class="auth-form">
            <form method="POST" action="{% url 'account_signup' %}">
                {% csrf_token %}
                {% include 'form-fields.html' %}
                <p>
                    <button class="btn btn-primary btn-block"
                            type="submit">{% trans 'Register' %}</button>
                </p>
            </form>
        </div>
    </div>
{% endblock %}
